package com.newasia.management.dal.user.persistence;

import com.newasia.management.dal.user.entitys.SysRole;
import com.newasia.management.dal.user.entitys.SysUser;
import com.newasia.management.dal.user.entitys.SysUserRole;

import java.util.List;

public interface SysRoleMapper {
    int deleteByPrimaryKey(Long roleId);

    Long insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<SysRole> selectSysRoleByUserId(SysUser sysUser);

    int insertSysUserRole(SysUserRole sysUserRole);

    int updateSysRoleByUserId(SysUserRole sysUserRole);

    SysRole selectSysRoleByName(SysRole SysRoleEntity);

    List<SysRole> selectSysRole();

    List<SysRole> selectSysRoleByMenuId(Long MenuId);
}